projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cbf5b1
)
ensure name of a thread is a string
author
Tom Tromey
<tromey@redhat.com>
Sun, 19 Aug 2012 09:26:42 +0000
(
03:26
-0600)
committer
Tom Tromey
<tromey@redhat.com>
Sun, 19 Aug 2012 09:26:42 +0000
(
03:26
-0600)
src/thread.c
patch
|
blob
|
history
diff --git
a/src/thread.c
b/src/thread.c
index 8fa43dd57f2e6883724e9fe93ed525aa308ec862..b8ffb0662c30ca7cf01e556901c664793916e285 100644
(file)
--- a/
src/thread.c
+++ b/
src/thread.c
@@
-661,6
+661,9
@@
If NAME is given, it names the new thread. */)
if (!initialized)
abort ();
+ if (!NILP (name))
+ CHECK_STRING (name);
+
new_thread = ALLOCATE_PSEUDOVECTOR (struct thread_state, m_gcprolist,
PVEC_THREAD);
memset ((char *) new_thread + offsetof (struct thread_state, m_gcprolist),